<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
    <h:outputStylesheet library="css" name="main.css" />
</h:head>
<h:body>
    <h:form>
 		
        <h:panelGrid id="grid" columns="2" cellpadding="4">
         
            <h:outputLabel for="nome" value="Nome:" style="font-weight:bold"/>                    
            <p:inputText id="nome" value="#{clienteCRUDBean.cliente.nome}" required="true" label="Nome" />
            
            <h:outputLabel for="fone" value="Telefone:" style="font-weight:bold"/>                    
            <p:inputText id="fone" value="#{clienteCRUDBean.cliente.telefone}" label="Telefone" required="false" />
            
            <h:outputLabel for="celular" value="Celular:" style="font-weight:bold"/>                    
            <p:inputText id="celular" value="#{clienteCRUDBean.cliente.celular}" label="Celular" required="true" />
         
         	<h:outputLabel for="email" value="E-Mail:" style="font-weight:bold"/>                    
            <p:inputText id="email" value="#{clienteCRUDBean.cliente.email}" required="false" label="Endereço"/>
            
         	<h:outputLabel for="endereco" value="Endereço:" style="font-weight:bold"/>                    
            <p:inputText id="endereco" value="#{clienteCRUDBean.cliente.endereco}" required="false" label="Endereço"/>
            
         	<h:outputLabel for="complemento" value="Complemento:" style="font-weight:bold"/>                    
            <p:inputText id="complemento" value="#{clienteCRUDBean.cliente.complemento}" required="false" label="Complemento"/>
            
             <h:outputLabel for="altura" value="Altura:" style="font-weight:bold"/>                    
            <p:inputText id="altura" value="#{clienteCRUDBean.cliente.altura}" label="altura" required="false" />

             <h:outputLabel for="peso" value="Peso:" style="font-weight:bold"/>                    
            <p:inputText id="peso" value="#{clienteCRUDBean.cliente.pesso}" label="peso" required="false" />

             <h:outputLabel for="tempoSurf" value="Tempo de Surf (anos):" style="font-weight:bold"/>                    
            <p:inputText id="tempoSurf" value="#{clienteCRUDBean.cliente.tempoSurf}" label="Tempo de Surf" required="false" />
            
        </h:panelGrid>
        				 
	  	<p:commandButton action="#{clienteCRUDBean.createCliente()}"
 						 process="@form" 
 						 value="#{msgs.create}"/>
       
                
        <br/>
    </h:form>
</h:body>
</html>